<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">消费查询

</div>
<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody>
    	<tr>
		<td colspan="8">
		<form action="">	
		游戏ID<input type="text" name="c_user_id" value="<?php echo Http::get('c_user_id');?>" style="width:50px;"/>

		昵称<input type="text" name="c_nickname" value="<?php echo Http::get('c_nickname');?>" style="width:50px;"/>		
		商品ID<input type="text" name="c_beautiful_id" value="<?php echo Http::get('c_beautiful_id');?>" style="width:50px;"/>
		商品名称<input type="text" name="c_beautiful_name" value="<?php echo Http::get('c_beautiful_name');?>" style="width:50px;"/>
		消费金币<input type="text" name="c_beautiful_gold" value="<?php echo Http::get('c_beautiful_gold');?>" style="width:50px;"/>
		消费比索<input type="text" name="c_beautiful_money" value="<?php echo Http::get('c_beautiful_money');?>" style="width:50px;"/>
		日期：<input 
			id="c_sdatetime" 
			name="c_sdatetime" 
			type="text" 
			style="width:65px;"
			value='<?php 
			if (Http::get('c_sdatetime')){
				echo Http::get('c_sdatetime');
			}
			?>' class='date demo_time'  
			onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
			>-<input 
			id="c_edatetime" 
			name="c_edatetime" 
			type="text" 
			style="width:65px;"
			value='<?php 				 
			if (Http::get('c_edatetime')){
				echo Http::get('c_edatetime');
			}
			?>' class='date demo_time'  
			onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
			>
		<select name="is_send">
		<?php 
			if (Http::get('is_send')==1){
				echo '<option value="1">购买</option>';
			}
			if (Http::get('is_send')==2){
				echo '<option value="2">全部</option>';
			}
			if (Http::get('is_send')==3){
				echo '<option value="3">系统赠送</option>';
			}
		?>
		<option value="1">购买</option>
		<option value="2">全部</option>
		<option value="3">系统赠送</option>
		
		</select>
		<input type="submit" value="搜 索" class="btn"> 
		
		</form>
		</td>
	</tr>
  
  <tr>
  	<th align="left" width="10%">序号</th>
  	<th>商品ID</th>
  	<th>商品名称</th>
  	<th align="left" width="10%">游戏ID</th>  
    <th>昵称</th>
    <th>消费时间</th> 
    <th>消费金币</th>
    <th>消费比索</th>
  </tr>

	<?php 
	
	if ($rs['list']){
	foreach ($rs['list'] as $k=>$v):
	
	?>
   <tr>
   	
    <td align="left" width="10%"> <?php echo $v['c_index'];?></td>
   
    <td align="center" > <?php echo  $v['c_beautiful_id'];?></td>
    <td align="center" > <?php echo  $v['c_beautiful_name'];?></td>
    <td align="left" width="10%"> <?php echo $v['c_user_id'];?></td>
    <td align="center">	<?php echo $v['c_nickname'];?></td>
    <td align="center">	<?php echo $v['c_action_datetime'];?></td>
    <td align="center">	<?php echo $v['c_beautiful_gold'];?></td>
    <td align="center">	<?php echo $v['c_beautiful_money']/10;?></td>
    
  </tr>
  <?php endforeach;}?>
   <tr style="background: #F4FAFB;">
  <td  colspan="4"  align="left">合计  	
	<?php echo $rs['total'].'个订单 ,总计消费：'.($rs['paymoney']/10).'比索' ;?>
	<?php echo ($rs['paygold']).'金币' ;?></td>
	<td colspan="4" align="right"><?php echo $rs['html']?></td>
	
	</tr>
 
 
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>